package net.mysoft.budgetsoft.system.pagemodel;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class FlowOperationNote {
	private String templateNodeID;
	private String userCodes;
	private String handleUserCodes;
	public String getTemplateNodeID() {
		return templateNodeID;
	}
	public void setTemplateNodeID(String templateNodeID) {
		this.templateNodeID = templateNodeID;
	}
	public String getUserCodes() {
		return userCodes;
	}
	public void setUserCodes(String userCodes) {
		this.userCodes = userCodes;
	}
	public String getHandleUserCodes() {
		return handleUserCodes;
	}
	public void setHandleUserCodes(String handleUserCodes) {
		this.handleUserCodes = handleUserCodes;
	}
	
	public static void main(String[] args){
		List list = new ArrayList();
		for(int i=0;i<100;i++){
			FlowOperationNote fon = new FlowOperationNote();
			fon.setTemplateNodeID(""+i);
			fon.setHandleUserCodes("user1");
			fon.setHandleUserCodes("user2");
			list.add(fon);
		}
		String jsonStr = JSON.toJSONStringWithDateFormat(list, "yyyy-MM-dd HH:mm:ss" );
		System.out.println(jsonStr);
		
		JSONObject jsonObj = new JSONObject();
		List<JSONObject> o = (List) jsonObj.parse (jsonStr);
		for(JSONObject fon:o){
			System.out.println(fon.getString("templateNodeID"));
		}
		
	}
}
